﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucAgendaImprimir.ascx.cs" Inherits="CANO.WebSite.UserControls.ucAgendaImprimir" %>
<%@ Import Namespace="CANO.Data.DAOs.Calendar" %>
<link href="/css/dp_calendar.css" type="text/css" rel="Stylesheet" />
<link href="/css/AgendaImprimible.css" type="text/css" rel="Stylesheet" />

<div id="3dayCalendar" class="calendar_list
" style="height: 100%; width:1000px; float: left; background-color: #FAFAFA; padding: 1px; padding-left: 5px;border: 1px solid #DBDBDB;padding-right: 5px;">
    <asp:Repeater ID="calendarRepeater" runat="server">
    <itemtemplate>
    <div id="calendar" class="dp_calendar">

        <div class="div_dates">
            
            <div class="day_name" id="day_name">
                <div class="div_month" >
                    <span class="span_month"><%# ((DaySection)Container.DataItem).dayName%> - <%# ((DaySection)Container.DataItem).dateDisplay%></span><br>
                </div>
            </div>
            <div class="clear">
            </div>
        </div>
        <div class="calendar_list">
			<asp:Panel ID="pnlSinCompromisos" runat="server" Visible="true"><div class="item-container">
				<h1>No existen compromisos en este día.</h1>
			</div>

			</asp:Panel>

                <asp:Repeater ID="DayEventsRepeater" runat="server" DataSource='<%# ((DaySection)Container.DataItem).events %>'>
                <ItemTemplate><div class="item-container">
                        <div class="time" style="font-size:30px;">
                            <%# ((CANO.Data.DAOs.Event)Container.DataItem).dateTimeEventShort%> -    <%# ((CANO.Data.DAOs.Event)Container.DataItem).eventTypeDisplay%>
                       
					    </div>
						<div>
						<div style="width:50%; float:left;">  
						Empleados involucrados:<br /> 
                            <asp:Repeater ID="Repeater1" runat="server" DataSource='<%# ((CANO.Data.DAOs.Event)Container.DataItem).Users%>' >
											<ItemTemplate>
												<label for="some21" style="font-size:20px;margin-left:35px;">
												<b>
													<%# ((CANO.Data.DAOs.UsuarioDAO)Container.DataItem).FullName %></b></label>
													<br />
											</ItemTemplate>
										</asp:Repeater>
						</div>
                        <div style="width:50%; float:left;">  
						Contactos involucrados:<br />
                            <asp:Repeater ID="rptCompartidoCon" runat="server" DataSource='<%# ((CANO.Data.DAOs.Event)Container.DataItem).Contacts%>' >
											<ItemTemplate>
												<label for="some21" style="font-size:20px;margin-left:35px;">
												<b>
													<%# ((CANO.Data.DAOs.ContactoDAO)Container.DataItem).FullName%></b></label>
													<br />
											</ItemTemplate>
										</asp:Repeater>
						</div>
						</div>
                        <div class="clear">
                        </div>
						</div>  
                </ItemTemplate>
                </asp:Repeater>
        </div>
    </div>
    </itemtemplate>
    </asp:Repeater>

<script type="text/javascript">
	$(document).ready(function () {

		//        // Bind the Share btn to Open the Modal
		//        $('.calendar_list li').click(function () {
		//            var $dialog = $('#dialogContainer')
		//            .html('<p>Loading...</p>')
		//            .dialog({
		//                autoOpen: false,
		//                title: 'Share the item',
		//                position: ['center', 150],
		//                width: 450,
		//                focus: function (event, ui) {
		//                    $('#dialogcloser').click(function () {
		//                        $dialog.dialog('close');
		//                    });
		//                },
		//                open: function (event, ui) {
		//                    $("#dialogContainer").load("http://www.google.com.ar?q=");
		//                }
		//            });
		//            $dialog.dialog('open');
		//        });
	});    
</script>